package sample.web.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.util.Date;
@TableName("orders")
public class Order {
    //主键id
    @TableField("id")
    private String id;
    //收件人名字电话
    @TableField("name")
    private String name;
    //总金额
    @TableField("summoney")
    private Float summoney;
    //应付金额
    @TableField("payable")
    private Float payable;
    //订单状态
    @TableField("orderstate")
    private Integer orderstate;
    //支付状态
    @TableField("paystate")
    private Integer paystate;
    //发货状态
    @TableField("shipments")
    private Integer shipments;
    //支付方式
    @TableField("payment")
    private Integer payment;
    //配送方式
    @TableField("delivery")
    private Integer delivery;
    //下单时间
    @TableField("orderTime")
    private Date orderTime;
    @TableField("delflag")
    private Integer delflag;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Float getSummoney() {
        return summoney;
    }

    public void setSummoney(Float summoney) {
        this.summoney = summoney;
    }

    public Float getPayable() {
        return payable;
    }

    public void setPayable(Float payable) {
        this.payable = payable;
    }

    public Integer getOrderstate() {
        return orderstate;
    }

    public void setOrderstate(Integer orderstate) {
        this.orderstate = orderstate;
    }

    public Integer getPaystate() {
        return paystate;
    }

    public void setPaystate(Integer paystate) {
        this.paystate = paystate;
    }

    public Integer getShipments() {
        return shipments;
    }

    public void setShipments(Integer shipments) {
        this.shipments = shipments;
    }

    public Integer getPayment() {
        return payment;
    }

    public void setPayment(Integer payment) {
        this.payment = payment;
    }

    public Integer getDelivery() {
        return delivery;
    }

    public void setDelivery(Integer delivery) {
        this.delivery = delivery;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getName() {
        return name;
    }

    public Integer getDelflag() {
        return delflag;
    }

    public void setDelflag(Integer delflag) {
        this.delflag = delflag;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id='" + id + '\'' +
                ", summoney=" + summoney +
                ", payable=" + payable +
                ", orderstate=" + orderstate +
                ", paystate=" + paystate +
                ", shipments=" + shipments +
                ", payment=" + payment +
                ", delivery=" + delivery +
                ", orderTime=" + orderTime +
                '}';
    }

}
